#include <iostream>
#include <iomanip>
#include <ostream>
#include <math.h>
using namespace std;
//Represetns time of appointments, only for interal use!
struct time{
	time();
	time(float ftime);
	time(short hour, short minute);
	time(double ftime);
	time& operator=(const time& t);
	bool operator<(const time& t) const;
	bool operator<=(const time& t) const;
	short hour;
	short minute;	
};
time operator-(const time& t1, const time& t2);
time operator+(const time& t1, const time& t2);
ostream& operator<<(ostream& os, const time& t);

struct timeComparator{
	bool operator()(const time t1,const time t2) const {
		if(t1.hour < t2.hour)
			return true;
		if(t1.hour == t2.hour)
			return t1.minute < t2.minute;
		return false;
	}
};